package de.sas.za_expression.tests;

import de.sas.za_expression.interpreter.Interpreter;
import de.sas.za_expression.model.Zelle;

public class TestInterpreter {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Interpreter interpreter = new Interpreter();
		String zelleHeinz = "Heinz(name:String, alter:Double)";
		String zellePaul = "Paul(name:String, alter:Double, geschlecht:String, Wohnort:String)";
		
		String zellenExpr = "Heinz(asdf (a) asdf)";
		
		
		try {
			interpreter.evaluateZellenExpression(zellenExpr);
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		for (Zelle tmpZelle : interpreter.getHashZellen().values())
		{
			System.out.println(tmpZelle);
		}
	}

}
